﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true"
    CodeFile="InternalAccountPayment.aspx.cs" Inherits="rpt_InternalInvoicePayment"
    Title="Ghasam | Internal Accounting Report" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
    </CR:CrystalReportSource>
    
    <asp:SqlDataSource ID="sdsInternalAccounts" runat="server" ConnectionString="<%$ ConnectionStrings:GhasamConnectionString %>"
        SelectCommand="SELECT [AccountName], [ID] FROM [InternalAccounts]"></asp:SqlDataSource>
    
    <table style="width: 80%">
        <tr>
            <td style="width:150px;">
                <asp:Label ID="Label1" runat="server" Text="نام کالا"></asp:Label>
            </td>
            <td>
                <ajax:AutoCompleteExtender ID="ace2" TargetControlID="txtItemName" ServicePath="~/WebService/AutoCompleteService.asmx"
                    ServiceMethod="GetItemName" MinimumPrefixLength="2" CompletionInterval="1000"
                    EnableCaching="true" CompletionSetCount="12" runat="server" />
                    <asp:TextBox ID="txtItemName" autocomplete="off" runat="server" />
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text="تاریخ ثبت از"></asp:Label>
            </td>
            <td>
                <ajaxToolkit:MaskedEditExtender ID="meeStartDate" runat="server" TargetControlID="txtFromAccountDate"
                    Mask="9999/99/99" MessageValidatorTip="true" CultureName="fa-IR" OnFocusCssClass="MaskedEditFocus"
                    OnInvalidCssClass="MaskedEditError" MaskType="None" AcceptNegative="Left" />
                <asp:TextBox ID="txtFromAccountDate" Style="direction: ltr; text-align: left" Width="100"
                    runat="server" />
            </td>
            <td colspan="2">
                &nbsp;&nbsp;&nbsp;
                تا
                &nbsp;&nbsp;&nbsp;
                <ajaxToolkit:MaskedEditExtender ID="meeEndDate" runat="server" AcceptNegative="Left"
                    CultureName="fa-IR" Mask="9999/99/99" MaskType="None" MessageValidatorTip="true"
                    OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtToAccountDate">
                </ajaxToolkit:MaskedEditExtender>
                <asp:TextBox ID="txtToAccountDate" runat="server" Style="direction: ltr; text-align: left"
                    Width="100"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label4" runat="server" Text="نام فروشنده"></asp:Label>
            </td>
            <td>
                <ajax:AutoCompleteExtender ID="ace1" TargetControlID="txtSalesPerson" ServicePath="~/WebService/AutoCompleteService.asmx"
                    ServiceMethod="GetSalesPersonName" MinimumPrefixLength="2" CompletionInterval="1000"
                    EnableCaching="true" CompletionSetCount="12" runat="server" />
                <asp:TextBox ID="txtSalesPerson" autocomplete="off" runat="server" />
            </td>
            <td>
                <asp:Label ID="Label2" runat="server" Text="نام حساب"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlAccountName" runat="server" AppendDataBoundItems="True"
                    DataSourceID="sdsInternalAccounts" DataTextField="AccountName" DataValueField="ID"
                    Width="104px">
                    <asp:ListItem Text="---" Value="-1" />
                </asp:DropDownList>
            </td>
            <td colspan="3">
            </td>
        </tr>
        <tr>
            <asp:Panel ID="pnlAccountingType" runat="server">
                <td>
                    <asp:Label ID="Label5" runat="server" Text="نوع هزینه"></asp:Label>
                </td>
                <td>
                    <asp:CheckBox ID="chkFormal" runat="server" Text="رسمی" />
                    <br />
                    <asp:CheckBox ID="chkNotFormal" runat="server" Text="غیر رسمی" />
                    <br />
                    <asp:CheckBox ID="chkDisClosed" runat="server" Text="اعلامی" />
                </td>
                <td colspan="5">
                </td>
            </asp:Panel>
        </tr>
    </table>
    <br />
    <p>
        <asp:Button ID="btnSearch" runat="server" Text="گزارش" />
    </p>
    
    <hr />
    
    <br />
    <br />
    
    <CR:CrystalReportViewer ID="crvInternalAccountPayment" runat="server" DisplayGroupTree="False" />
    
</asp:Content>
